]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: move prompt hiding code to hidePrompt
authorRay Strode <rstrode@redhat.com>
Mon, 18 Feb 2013 01:41:40 +0000 (20:41 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 19 Feb 2013 23:39:54 +0000 (18:39 -0500)
The sessionList and the prompt hint are all really
part of the prompt, so we should have the code that
hides those things in hidePrompt instead of in
showUserList.

This commit does that.

https://bugzilla.gnome.org/show_bug.cgi?id=694062

js/gdm/loginDialog.js

index 7ed4ce5324442a01524720ef43a3fb1f73c0d282..79d88b838096caa74b56a6673a65364396f639ba 100644 (file)
@@ -850,6 +850,9 @@ const LoginDialog = new Lang.Class({
         this._updateSensitivity(true);
         this._promptEntry.set_text('');
 
+        this._sessionList.close();
+        this._promptLoginHint.hide();
+
         this.clearButtons();
         this._workSpinner = null;
         this._signInButton = null;
@@ -1075,8 +1078,6 @@ const LoginDialog = new Lang.Class({
 
     _showUserList: function() {
         this._hidePrompt();
-        this._sessionList.close();
-        this._promptLoginHint.hide();
         this._userList.actor.show();
         this._userList.actor.opacity = 255;
         this._notListedButton.show();